-- GENERATED SPELL FOR [Spectral Patron] --


function spell0_16468(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(29560,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16468', 2317, 1)
end

function spell1_16468(pUnit, Event) --@Left Hook,n/a--
pUnit:FullCastSpellOnTarget(29555,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16468', 3254, 1)
end

function Sorts_16468(pUnit, Event)
local choix_sorts_16468 = math.random(0, 1)
if choix_sorts_16468 == 0 then
pUnit:RegisterEvent('spell0_16468', 1, 1)
end
if choix_sorts_16468 == 1 then
pUnit:RegisterEvent('spell1_16468', 1, 1)
end
end

function mob16468_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16468', math.random(1500, 3000), 1)
end

function mob16468_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16468_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16468_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16468, 1, 'mob16468_Action')
RegisterUnitEvent(16468, 2, 'mob16468_Leave')
RegisterUnitEvent(16468, 3, 'mob16468_Kill')
RegisterUnitEvent(16468, 4, 'mob16468_Die')
